<template>
  <div class="header">
    <div class="header-bd wrapper">
      <div class="left">
        <a class="logo" href="">
          <img class="logo-img" src="../assets/logo.png" alt="" />
          <h1 class="logo-text">腾讯问卷</h1>
        </a>
        <a class="link" href="">创建问卷</a>
        <a class="link" href="">我的问卷</a>
        <a class="link" href="">回答小组</a>
        <a class="link" href="">调查资讯</a>
        <a class="link" href="">帮助中心</a>
      </div>
      <a class="dl" href="">登录</a>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
@font-face {
  font-family: tengxun;
  src: url("~@/assets/logo.ttf");
}

.header {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
}

.header-bd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left {
  display: flex;
  height: 60px;
  line-height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  height: 60px;
  text-decoration: none;
  margin: 0 9px 0 0;
}

.logo-img {
  height: 32px;
  width: 32px;
  margin: 0 5px 0 0;
}
.logo-text {
  font-size: 21px;
  color: #333;
  font-family: tengxun;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
}

.link {
  text-decoration: none;
  color: #333333;
  font-size: 17px;
  margin: 0 0 0 50px;
  position: relative;
}

.logo:hover .logo-2 {
  color: #58a6e7;
}

.link:hover {
  color: #58a6e7;
}

.link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2f8cdb;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s;
}
.link:hover::after {
  width: 100%;
}

.dl {
  background-color: #80c200;
  color: #fff;
  border: 1px solid #80c200;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 14px;
  height: 34px;
  line-height: 34px;
  text-decoration: none;
}

.dl:hover {
  transition: 150ms ease-in-out;
  background-color: #5aae00;
}
</style>
